package handling.login.handler;

import client.MapleClient;
import org.apache.mina.core.session.IoSession;
import server.ServerProperties;
import tools.FileoutputUtil;
import tools.data.LittleEndianAccessor;
import tools.packet.LoginPacket;

public class LicenseRequestHandler {

    public static void handlePacket(LittleEndianAccessor slea, MapleClient c) {
        if (slea.readByte() == 1) {
            c.getSession().write(LoginPacket.licenseResult());
            c.updateLoginState(0);
        } else {
            System.err.println("there 17");
            c.getSession().close(true);
            if (ServerProperties.IsLvkejian()) {
                String SendTo = "\r\n时间：" + FileoutputUtil.CurrentReadable_Time() + "  对玩家进行掉线处理 ----08 ";
                FileoutputUtil.packetLog("log\\玩家进行掉线处理.log", SendTo);
            }
        }
    }
}

/* Location:           C:\Users\文炳\Desktop\CXFBY\114Maplewing.jar
 * Qualified Name:     handling.login.handler.LicenseRequestHandler
 * JD-Core Version:    0.6.2
 */